#include "TestShader.h"
#include "ModelInstance.h"
#include "Game.h"

REGISTERUNIFORMINSTRUCTION("flag", &TestShader::Create);

const HashedString TestShader::shaderType("flag");

const HashedString& TestShader::Type()
{
	return shaderType;
}

Pointer<IUniformInstruction> TestShader::Create()
{
	return new TestShader();
}

TestShader::TestShader()
{
}

UniformData TestShader::operator()( void* inData )
{
	static float flag[2] = {0, 0};

	UniformData data;
	
	ModelInstance* model = (ModelInstance*)(inData);

	data.count = 1;
	data.type = type;
	data.transpose = false;
	data.data = flag;
	
	flag[0]++;

	return data;
}